package com.fr.report.core;

import com.fr.report.core.headerfooter.HFElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class ReportHFCore
  implements Cloneable, Serializable
{
  private List leftList = new ArrayList();
  private List centerList = new ArrayList();
  private List rightList = new ArrayList();

  public List getLeftList()
  {
    return this.leftList;
  }

  public void setLeftList(List paramList)
  {
    this.leftList = paramList;
  }

  public List getCenterList()
  {
    return this.centerList;
  }

  public void setCenterList(List paramList)
  {
    this.centerList = paramList;
  }

  public List getRightList()
  {
    return this.rightList;
  }

  public void setRightList(List paramList)
  {
    this.rightList = paramList;
  }

  public Object clone()
    throws CloneNotSupportedException
  {
    ReportHFCore localReportHFCore = (ReportHFCore)super.clone();
    localReportHFCore.leftList = cloneFromOneListToAnother(getLeftList());
    localReportHFCore.centerList = cloneFromOneListToAnother(getCenterList());
    localReportHFCore.rightList = cloneFromOneListToAnother(getRightList());
    return localReportHFCore;
  }

  private List cloneFromOneListToAnother(List paramList)
  {
    ArrayList localArrayList = new ArrayList();
    for (int i = 0; i < paramList.size(); ++i)
      try
      {
        localArrayList.add(((HFElement)paramList.get(i)).clone());
      }
      catch (CloneNotSupportedException localCloneNotSupportedException)
      {
      }
    return localArrayList;
  }
}